Component({
  data: {
    selected: 0,
    color: "#7A7E83",
    selectedColor: "#3cc51f",
    list: [{
      "pagePath": "/pages/recruit/index/index",
      "text": "首页",
      "iconPath": "/pages/images/index.png",
      "selectedIconPath": "/pages/images/index_hl.png"
    },
    {
      "pagePath": "/pages/recruit/all/all",
      "text": "全部兼职",
      "iconPath": "/pages/images/job.png",
      "selectedIconPath": "/pages/images/job_hl.png"
    },
    {
      "pagePath": "/pages/recruit/personal/personal",
      "text": "个人中心",
      "iconPath": "/pages/images/personal.png",
      "selectedIconPath": "/pages/images/personal_hl.png"
    }]
  },
  attached() {
  },
  methods: {
    switchTab(e) {
      const data = e.currentTarget.dataset
      const url = data.path
      wx.switchTab({ url })
    }
  }
})